<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var i = 1;
			var sum = 0;
			do{
				sum+=i;
				i++;
			}
			while(i<=100);
			document.write("1+2+...+100="+sum);
		</script>
	</body>
</html>
